﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace PoemonAdventures
{
    class StoryScreen
    {
        Vector2 pos = new Vector2(200, 200);
        int elapsedTime = 0;

        internal void Update(GameTime gameTime)
        {
            elapsedTime += gameTime.ElapsedGameTime.Milliseconds;
            if (elapsedTime > 1000)
            {
                ScreenManager.gameState = GameState.Map;
            }
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            string story = "A bedtime story is a traditional form of storytelling, where a story is told to a child at bedtime to prepare them for sleep. Bedtime stories have many advantages, for parents/adults and children alike. The fixed routine of a bedtime story before sleeping has a relaxing effect, and the soothing voice of a person telling a story makes the child fall asleep more easily. The emotional aspect creates a bond between the storyteller and the listener, often a parent and child. Bedtime stories can be read from a book, or rather, fictional stories made up by the storyteller. The stories are mostly rather short, between one and five minutes, and have a happy ending. A different form of bedtime reading is using longer stories, but dividing them up, thus creating cliffhangers. Children will look forward to their bedtime story, and a fixed routine is installed.";

            spriteBatch.Begin();
            spriteBatch.DrawString(ScreenManager.osdFont, story, pos, Color.Black);
            spriteBatch.End();
        }
    }
}
